package com.health.teahouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 运动数据管理对象 exercise_data
 * 
 * @author yang
 * @date 2024-02-11
 */
public class ExerciseData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID，自增主键 */
    private Long dataId;

    /** 关联的用户ID */
    @Excel(name = "关联的用户ID")
    private Long userId;
    private String userName;

    /** 运动名称 */
    @Excel(name = "运动名称")
    private String exerciseName;

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return "ExerciseData{" +
                "dataId=" + dataId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", exerciseName='" + exerciseName + '\'' +
                ", durationMinutes=" + durationMinutes +
                ", caloriesBurned=" + caloriesBurned +
                ", distanceCovered=" + distanceCovered +
                ", exerciseDate=" + exerciseDate +
                '}';
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 运动时长，单位：分钟 */
    @Excel(name = "运动时长，单位：分钟")
    private Long durationMinutes;

    /** 燃烧的卡路里 */
    @Excel(name = "燃烧的卡路里")
    private Long caloriesBurned;

    /** 运动距离，单位：公里 */
    @Excel(name = "运动距离，单位：公里")
    private Long distanceCovered;

    /** 运动日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "运动日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exerciseDate;

    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExerciseName(String exerciseName) 
    {
        this.exerciseName = exerciseName;
    }

    public String getExerciseName() 
    {
        return exerciseName;
    }
    public void setDurationMinutes(Long durationMinutes) 
    {
        this.durationMinutes = durationMinutes;
    }

    public Long getDurationMinutes() 
    {
        return durationMinutes;
    }
    public void setCaloriesBurned(Long caloriesBurned) 
    {
        this.caloriesBurned = caloriesBurned;
    }

    public Long getCaloriesBurned() 
    {
        return caloriesBurned;
    }
    public void setDistanceCovered(Long distanceCovered) 
    {
        this.distanceCovered = distanceCovered;
    }

    public Long getDistanceCovered() 
    {
        return distanceCovered;
    }
    public void setExerciseDate(Date exerciseDate) 
    {
        this.exerciseDate = exerciseDate;
    }

    public Date getExerciseDate() 
    {
        return exerciseDate;
    }

}
